package com.example.springboot.mapper;

import com.example.springboot.controller.request.RecordPageRequest;
import com.example.springboot.entity.Record;
import com.example.springboot.entity.Record;
import com.example.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface RecordMapper {

    //    @Select("select * from record")
    List<Record> listRecoreds();

    List<Record> listByCondition(RecordPageRequest recordPageRequest);

    void add(Record record);
}
